import request from '@/utils/request';
import URL  from '@/api/baseUrl';

export default class ServiceProvider {
    /**
   * 查询列表
   */
  static list (data = {}) {
    return request.get(`${URL.comBasic}/bas-providers/list`, data)
  }

  /**
   * 查询详情
   */
  static getInfo (id) {
    return request.get(`${URL.comBasic}/bas-providers/getInfo/${id}`)
  }
  /**
   * 删除
   */
  static remove (ids) {
    return request.delete(`${URL.comBasic}/bas-providers/remove`,ids)
  }
  /**
   * 新增
   */
  static add (data = {}) {
    return request.post(`${URL.comBasic}/bas-providers/add`, data)
  }
  /**
   * 修改
   */
  static edit (data = {}) {
    return request.put(`${URL.comBasic}/bas-providers/edit`, data)
  }
}